function http1({
    url,
    success
}){
    wx.request({
        url:"http://192.168.4.20:8000/",
        header: {'content-type':'application/json'},
        method: 'GET',
        dataType: 'json',
        responseType: 'text',
        success: (res)=>{
           success(res) 
        }
    });
}

function http2({
    url,
    success
}){
    wx.request({
        url:"http://192.168.4.18:8000/banner",
        header: {'content-type':'application/json'},
        method: 'GET',
        dataType: 'json',
        responseType: 'text',
        success: (res)=>{
           success(res) 
        }
    });
}
module.exports ={
    http1,
    http2
};